import {createApp} from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import installElementPlus from './plugins/element'
import './assets/css/icon.css'
import ElementPlus from 'element-plus'
import 'element-plus/lib/theme-chalk/index.css'


axios.interceptors.request.use(function(config){
    var token=sessionStorage.getItem("key");
    config.headers.Authorization='Bearer '+token;
    return config;
},function(error){
    return Promise.reject(error);
});




const app = createApp(App)
import axios from 'axios';
app.config.globalProperties.$axios=axios
installElementPlus(app)
app
    .use(store)
    .use(router)
    .use(ElementPlus)
    .mount('#app')